import request from '@/utils/request'

// 查询【车辆型号】列表
export function listModel(query) {
  return request({
    url: '/backstage/vehicleModel/list',
    method: 'get',
    params: query
  })
}

// 查询【车辆信号】详细
export function getModel(id) {
  return request({
    url: '/backstage/vehicleModel/' + id,
    method: 'get'
  })
}

// 新增【车辆型号】
export function addModel(data) {
  return request({
    url: '/backstage/vehicleModel',
    method: 'post',
    data: data
  })
}

// 修改【车辆行号】
export function updateModel(data) {
  return request({
    url: '/backstage/vehicleModel',
    method: 'put',
    data: data
  })
}

// 删除【车辆行号】
export function delModel(id) {
  return request({
    url: '/backstage/vehicleModel/' + id,
    method: 'delete'
  })
}

// 导出【车辆行号】
export function exportModel(query) {
  return request({
    url: '/backstage/vehicleModel/export',
    method: 'get',
    params: query
  })
}